package com.neusoft.service;

import com.neusoft.entity.Disease;
import com.neusoft.entity.MedicalRecordDisease;
import com.neusoft.utils.Result;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author akemihomurasama
 */
public interface MedicalRecordDiseaseService {
    /**
     * 保存患者疾病关联信息
     *
     * @param diseaseList     疾病列表
     * @param medicalRecordId 患者病历首页id
     * @return 添加结果
     */
    Result addDiseaseForPatient(List<Disease> diseaseList, int medicalRecordId);

    /**
     * 根据疾病id列表和患者病历首页id批量删除患者疾病
     *
     * @param diseaseIdList 疾病id列表
     * @param recordId      患者病历首页id
     * @return 更新结果
     */
    Result deleteDiseaseByRecordIdDiseaseId(List<Integer> diseaseIdList, int recordId);
}
